# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coreinfo
pkgver=4.5.0
pkgrel=0
pkgdesc="A file information tool from C-Suite"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libmediainfo-dev libzen-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coreinfo/-/archive/v$pkgver/coreinfo-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
590743eebcf1a0dba2cb976c40c5cce10cfba1f8d13d680132ab2aef3e23ded46f83260e2cf3b16216a2b5db84c9163f1b868b2a423b0aba1bf7903357bd240d  coreinfo-4.5.0.tar.gz
"
